package cn.lg.soar.flow.api.model;

import cn.lg.soar.flow.api.model.node.ButtonPermit;
import cn.lg.soar.flow.api.model.node.FieldPermit;
import cn.lg.soar.flow.api.model.node.Node;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.List;

/**
 *
 * @author luguoxiang
 * @Date: 2025/9/20
 * 开源项目：https://gitee.com/lgx1992/lg-soar 求star！请给我star！请帮我点个star！
 */
@Data
public class TaskDetailDTO {

    @Schema(description = "任务id")
    private String taskId;

    @Schema(description = "任务key")
    private String taskKey;

    @Schema(description = "任务名称")
    private String taskName;

    /**
     * 节点审批人
     */
    @Schema(description = "节点审批人")
    private List<ApproverDTO> approvers;

    /**
     * 节点字段权限
     */
    @Schema(description = "节点字段权限")
    private List<FieldPermit> fieldPermits;

    /**
     * 节点按钮权限
     */
    @Schema(description = "节点按钮权限")
    private List<ButtonPermit> buttonPermits;

    /**
     * 流程审批日志
     */
    @Schema(description = "流程审批日志")
    private List<AuditLogDTO> logs;

    /**
     * 流程节点数据
     */
    @Schema(description = "流程节点数据")
    private List<Node> nodes;

}
